Java Lab6
Problem: 6.1
Question 6.1:Define a class Line that has four private instance variables: (x1, y1) and (x2, y2)…
Question 6.1:Define a class Line that has four private instance variables: (x1, y1) and (x2, y2)…
Question 6.2: Your job is to define the above-mentioned classes as per the specification menti…